package mjava.lib;

import java.io.Serializable;

public class Methode implements DDEF, Serializable {
	
	private static final long serialVersionUID = 3546508036263299305L;
	private DTYPE returnType;
	private String methodName;
	private DPARAMS paramList;
	private int depl;
	
	private int autorisation;
	
	// 0 : public
	// 1 : static public
	// 2 : protected
	// 3 : static protected
	// 4 : private
	// 5 : static private
	
	public Methode(DTYPE returnType, String methodName, DPARAMS params, int autorisation) {
		this.returnType = returnType;
		this.methodName = methodName;
		this.paramList = params;
		this.autorisation =autorisation;
	}
	
	public int getAutorisation() {
		return autorisation;
	}
	
	public DPARAMS getParams() {
		return paramList;
	}
	
	public DTYPE getType() {
		return returnType;
	}
	
	public String getMethodName() {
		return methodName;
	}
	
	public String getMethodeLable() {
		return "Method." + this.methodName + "_LBL\n";
	}
	
	public void setDeplacement(int d) {
		this.depl = d;
	}
	
	public int getDeplacement() {
		return this.depl;
	}
}
